package com.ssm.dboss;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public class DBossJsonUtil {

    public static void main(String[] args) {
//        String json1 =  " [{\"apply_id\": 6499, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-prd-cd-cap3-ro\", \"db_list\": \"order_version_2\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:32:08\"}, {\"apply_id\": 6498, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-quantification-ro\", \"db_list\": \"quantification_index_report_linear3,quantification_index_report_swap,quantification_index_report_swap2,quantification_monitor_swap,quantification_swap_huobi_future,quantification_swap_open,quantification_swap_selftrade,quantification_swap_spot,quantification_swap_spot_usdt\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:27:04\"}, {\"apply_id\": 6497, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-prd-cd-cap3-ro\", \"db_list\": \"order_version_2\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 3, \"create_time\": \"2022-06-27 14:26:40\"}, {\"apply_id\": 6496, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-prd-cd-cap2-ro\", \"db_list\": \"order_version_1\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 3, \"create_time\": \"2022-06-27 14:26:13\"}, {\"apply_id\": 6495, \"title\": \"\\t\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-prd-cd-cap1-ro\", \"db_list\": \"order_version_0\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 3, \"create_time\": \"2022-06-27 14:25:48\"}, {\"apply_id\": 6494, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-prd-quantification-ro\", \"db_list\": \"cmecf_index,cmecf_index_swap,liqu_swap_linear_simple,market_maker_swap,market_maker_swap_prd,market_maker_ufuture,market_maker_uswap,quantification_index_report_linear2,quantification_index_report_linear3,quantification_index_report_linear4,quantification_index_report_linear_swap,quantification_monitor_swap_linear,quantification_swap_linear_back,quantification_swap_linear_binance,quantification_swap_linear_ok,quantification_swap_linear_open,quantification_swap_linear_selftrade,quantification_swap_linear_spot,quantification_swap_linear_spot_proximal\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 3, \"create_time\": \"2022-06-27 14:25:30\"}, {\"apply_id\": 6493, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-prd-quantification-ro\", \"db_list\": \"cmecf_index,cmecf_index_swap,liqu_swap_linear_simple,market_maker_swap,market_maker_swap_prd,market_maker_ufuture,market_maker_uswap,quantification_index_report_linear2,quantification_index_report_linear3,quantification_index_report_linear4,quantification_index_report_linear_swap,quantification_monitor_swap_linear,quantification_swap_linear_back,quantification_swap_linear_binance,quantification_swap_linear_ok,quantification_swap_linear_open,quantification_swap_linear_selftrade,quantification_swap_linear_spot,quantification_swap_linear_spot_proximal\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 3, \"create_time\": \"2022-06-27 14:24:44\"}, {\"apply_id\": 6492, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-prd-cap3-ro\", \"db_list\": \"linear_order_version_2\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 3, \"create_time\": \"2022-06-27 14:24:27\"}, {\"apply_id\": 6490, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-prd-cd-cap2-ro\", \"db_list\": \"order_version_1\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:20:32\"}, {\"apply_id\": 6489, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-prd-cd-cap1-ro\", \"db_list\": \"order_version_0\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:20:14\"}, {\"apply_id\": 6488, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-prd-quantification-ro\", \"db_list\": \"cmecf_index,cmecf_index_swap,liqu_swap_linear_simple,market_maker_swap,market_maker_swap_prd,market_maker_ufuture,market_maker_uswap,quantification_index_report_linear2,quantification_index_report_linear3,quantification_index_report_linear4,quantification_index_report_linear_swap,quantification_monitor_swap_linear,quantification_swap_linear_back,quantification_swap_linear_binance,quantification_swap_linear_ok,quantification_swap_linear_open,quantification_swap_linear_selftrade,quantification_swap_linear_spot,quantification_swap_linear_spot_proximal\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:19:55\"}, {\"apply_id\": 6487, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-prd-cap3-ro\", \"db_list\": \"linear_order_version_2\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:19:40\"}, {\"apply_id\": 6486, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-prd-cap2-ro\", \"db_list\": \"linear_order_version_1\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:18:32\"}, {\"apply_id\": 6485, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-prd-cap1-ro\", \"db_list\": \"linear_order_version_0\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:17:52\"}]";
//        exec(json1);
//
//        String json2 =  " [{\"apply_id\": 6484, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-prd-act-ro\", \"db_list\": \"linear_activity\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:17:36\"}, {\"apply_id\": 6483, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-cd-prd-grid-ro\", \"db_list\": \"linear_grid_1,linear_grid_2,linear_grid_3,linear_grid_4\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:17:17\"}, {\"apply_id\": 6482, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-cd-prd4-trade-manager-ro\", \"db_list\": \"awsdms_control,linear_contract_trade,linear_sso\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:16:49\"}, {\"apply_id\": 6481, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-cd-prd4-exchange3-ro\", \"db_list\": \"linear_futures_order_seq6,linear_futures_order_seq7,linear_futures_order_seq8,linear_futures_order_seq9,linear_order_seq6,linear_order_seq7,linear_order_seq8,linear_order_seq9\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:16:20\"}, {\"apply_id\": 6480, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-cd-prd4-exchange2-ro\", \"db_list\": \"linear_futures_order_seq2,linear_futures_order_seq3,linear_order_seq2,linear_order_seq3\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:15:59\"}, {\"apply_id\": 6479, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-cd-prd4-exchange1-ro\", \"db_list\": \"linear_futures_order_seq1,linear_futures_order_seq4,linear_futures_order_seq5,linear_order_seq1,linear_order_seq4,linear_order_seq5\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:15:35\"}, {\"apply_id\": 6478, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-linear-cd-prd4-btc9-ro\", \"db_list\": \"awsdms_control,linear_btc9\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:15:07\"}, {\"apply_id\": 6477, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u4e4b\\u5b9d\\u76d1\\u63a7\\u544a\\u8b66\\u4f7f\\u7528\", \"cluster_name\": \"swap-linear-cd-prd4-btc9-ro\", \"db_list\": \"awsdms_control,linear_btc9\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 3, \"create_time\": \"2022-06-27 14:14:35\"}, {\"apply_id\": 6476, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-cd-prd4-btc8-ro\", \"db_list\": \"awsdms_control,linear_btc8\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:14:00\"}, {\"apply_id\": 6475, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-cd-prd4-btc7-ro\", \"db_list\": \"awsdms_control,linear_btc7\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:13:37\"}, {\"apply_id\": 6474, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-cd-prd4-btc6-ro\", \"db_list\": \"awsdms_control,linear_btc6\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:13:19\"}, {\"apply_id\": 6473, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-cd-prd4-btc5-ro\", \"db_list\": \"awsdms_control,linear_btc5\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:13:01\"}, {\"apply_id\": 6472, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-cd-prd4-btc4-ro\", \"db_list\": \"awsdms_control,linear_btc4\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:12:34\"}, {\"apply_id\": 6471, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-linear-cd-prd4-btc3-ro\", \"db_list\": \"awsdms_control,linear_btc3\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:12:02\"}]";
//        exec(json2);
//
//        String json3 =  " [{\"apply_id\": 6470, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-linear-cd-prd4-btc2-ro\", \"db_list\": \"awsdms_control,linear_btc2\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:11:45\"}, {\"apply_id\": 6469, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-linear-cd-prd4-btc1-ro\", \"db_list\": \"awsdms_control,linear_btc1\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:11:25\"}, {\"apply_id\": 6468, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-cd-prd2-trade-manager-ro\", \"db_list\": \"awsdms_control,contract_trade,mail,phone,sms,sso\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:10:31\"}, {\"apply_id\": 6467, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-cd-prd2-exchange3-ro\", \"db_list\": \"order_seq3,order_seq5,order_seq6,order_seq7,order_seq8,order_seq9\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:10:09\"}, {\"apply_id\": 6466, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-cd-prd2-exchange2-ro\", \"db_list\": \"order_seq2,order_seq4\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:09:52\"}, {\"apply_id\": 6464, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-cd-prd2-exchange1-ro\", \"db_list\": \"order_seq1\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:09:30\"}, {\"apply_id\": 6463, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-cd-prd2-btc9-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:08:59\"}, {\"apply_id\": 6462, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-cd-prd2-btc8-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:08:42\"}, {\"apply_id\": 6461, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\\t\", \"cluster_name\": \"swap-cd-prd2-btc7-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:08:17\"}, {\"apply_id\": 6460, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-cd-prd2-btc6-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:07:58\"}, {\"apply_id\": 6459, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-cd-prd2-btc5-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:07:36\"}, {\"apply_id\": 6458, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-cd-prd2-btc4-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:07:03\"}, {\"apply_id\": 6457, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-cd-prd2-btc3-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:06:43\"}, {\"apply_id\": 6456, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-cd-prd2-btc2-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:04:56\"}]";
//        exec(json3);
//
//        String json4 =  " [{\"apply_id\": 6455, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"swap-cd-prd2-btc1-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:04:31\"}, {\"apply_id\": 6454, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"spot-prd-quantification-ro\", \"db_list\": \"asset_analysis,broker_mgt,broker_spot\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:04:09\"}, {\"apply_id\": 6453, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"contract-qt-ro\", \"db_list\": \"quantification,quantification_admin_count_prd2,quantification_binance_prd2,quantification_bitmex,quantification_burned,quantification_etp,quantification_grid,quantification_index_report,quantification_index_report2,quantification_monitor,quantification_monitor_new,quantification_ok_pro,quantification_ok_pro2,quantification_open_prd2,quantification_prd,quantification_prd_usdt\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:03:49\"}, {\"apply_id\": 6452, \"title\": \"\\t\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"contract-prd-center-ro\", \"db_list\": \"activity,contract_center_trade,sso\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:03:26\"}, {\"apply_id\": 6451, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"contract-prd-center-ro\", \"db_list\": \"activity,contract_center_trade,sso\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:02:45\"}, {\"apply_id\": 6450, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"contract-prd-cd-cap3-ro\", \"db_list\": \"order_version_2\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:02:22\"}, {\"apply_id\": 6449, \"title\": \"\\t\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"contract-prd-cd-cap2-ro\", \"db_list\": \"order_version_1\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:01:52\"}, {\"apply_id\": 6448, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"contract-prd-cd-cap1-ro\", \"db_list\": \"order_version_0\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:01:35\"}, {\"apply_id\": 6447, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"contract-cd-prd1-trade-manager-ro\", \"db_list\": \"awsdms_control,contract_trade,mail,phone,sms,sso\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 14:01:06\"}, {\"apply_id\": 6446, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"contract-cd-prd1-btc6-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 13:59:51\"}, {\"apply_id\": 6445, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"contract-cd-prd1-btc5-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 13:59:33\"}, {\"apply_id\": 6444, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"contract-cd-prd1-btc4-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 13:58:58\"}, {\"apply_id\": 6443, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"contract-cd-prd1-btc3-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 13:58:25\"}, {\"apply_id\": 6442, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"contract-cd-prd1-btc2-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 13:57:45\"}]";
//        exec(json4);
//
//        String json5 =  "[{\"apply_id\": 6441, \"title\": \"\\u5f00\\u53d1\\u4e0a\\u7ebf\\u3001\\u503c\\u73ed\\u76d1\\u63a7\\u544a\\u8b66\\u67e5\\u8be2\\u4f7f\\u7528\", \"cluster_name\": \"contract-cd-prd1-btc1-ro\", \"db_list\": \"awsdms_control,btc\", \"priv_type\": 1, \"table_list\": \"\", \"limit_num\": 1000, \"valid_date\": \"2023-06-27\", \"user_name\": \"zhengshaohong\", \"status\": 0, \"create_time\": \"2022-06-27 13:57:16\"}]";
//        exec(json5);

        String strJSON = "[{\"userId\":\"41053887\",\"productId\":\"USDT\",\"instrumentId\":\"ETH-USDT\",\"profit\":0.260701097455900832,\"profitRate\":199.839506172839506172,\"volume\":18000.000000000000000000,\"direction\":1,\"leverage\":200,\"positionMode\":2,\"modeType\":2},{\"userId\":\"12083675\",\"productId\":\"USDT\",\"instrumentId\":\"ETH-USDT\",\"profit\":0.031227328446346490,\"profitRate\":4.027777777777777777,\"volume\":21.000000000000000000,\"direction\":1,\"leverage\":5,\"positionMode\":2,\"modeType\":2},{\"userId\":\"41058221\",\"productId\":\"USDT\",\"instrumentId\":\"ETH-USDT\",\"profit\":0.031198844132808079,\"profitRate\":4.604305555555555555,\"volume\":10.000000000000000000,\"direction\":1,\"leverage\":5,\"positionMode\":2,\"modeType\":2},{\"userId\":\"12197539\",\"productId\":\"ETH-USDT\",\"instrumentId\":\"ETH-USDT\",\"profit\":0.030624110268592665,\"profitRate\":4.604305555555555555,\"volume\":5.000000000000000000,\"direction\":1,\"leverage\":5,\"positionMode\":2,\"modeType\":1},{\"userId\":\"12192455\",\"productId\":\"USDT\",\"instrumentId\":\"ETH-USDT\",\"profit\":0.029486981127642763,\"profitRate\":4.256944444444444444,\"volume\":1263.000000000000000000,\"direction\":1,\"leverage\":5,\"positionMode\":2,\"modeType\":2},{\"userId\":\"41044762\",\"productId\":\"ETH-USDT\",\"instrumentId\":\"ETH-USDT\",\"profit\":0.028847468987984791,\"profitRate\":4.604305555555555555,\"volume\":1.000000000000000000,\"direction\":1,\"leverage\":5,\"positionMode\":2,\"modeType\":1},{\"userId\":\"41044759\",\"productId\":\"USDT\",\"instrumentId\":\"ETH-USDT\",\"profit\":0.028461467233927053,\"profitRate\":4.152777777777777777,\"volume\":3.000000000000000000,\"direction\":1,\"leverage\":5,\"positionMode\":2,\"modeType\":2},{\"userId\":\"12210005\",\"productId\":\"ETH-USDT\",\"instrumentId\":\"ETH-USDT\",\"profit\":0.028386607937649119,\"profitRate\":4.604305555555555555,\"volume\":5.000000000000000000,\"direction\":1,\"leverage\":5,\"positionMode\":2,\"modeType\":1},{\"userId\":\"12211297\",\"productId\":\"ETH-USDT\",\"instrumentId\":\"ETH-USDT\",\"profit\":0.028254204457205417,\"profitRate\":4.604305555555555555,\"volume\":692.000000000000000000,\"direction\":1,\"leverage\":5,\"positionMode\":2,\"modeType\":1}]";

        List<Map<String, String>> list = JSON.parseObject(strJSON, new TypeReference<List<Map<String, String>>>() {
        });
        String userId = list.stream().map(map -> map.get("userId")).collect(Collectors.joining(","));
        System.out.println(userId);
    }

    private static void exec(String strJSON) {
        List<Map<String, String>> maps = JSON.parseObject(strJSON, new TypeReference<List<Map<String, String>>>() {
        });
        maps.forEach(item -> {
            if ("0".equals(item.get("status"))) {
                System.out.println("https://dbsos.huobiidc.com/apply/" + item.get("apply_id"));
            }
        });
    }
}
